"use strict";
var _stackblurEsMin = require("../modules/stackblur-es.min.js");
module.exports = {
  name: "Blur",
  handler: function () {
    var c = this,
      h = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {};
    return new Promise(function (r, i) {
      var s = h.x,
        e = void 0 === s ? 0 : s,
        n = h.y,
        t = void 0 === n ? 0 : n,
        a = h.width,
        o = void 0 === a ? 0 : a,
        u = h.height,
        v = void 0 === u ? 0 : u,
        d = h.blur,
        l = void 0 === d ? 0 : d;
      (0, _stackblurEsMin.canvasRGB)(c.canvas, c.xDpr(e), c.xDpr(t), c.xDpr(o), c.xDpr(v), l), r()
    })
  }
};